<?php
session_start();
$name=$_SESSION['user'];
echo'{"userName":"'.$name[id].'"}';